<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>  
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    
    <title>我要请假</title>

  <link rel="stylesheet" href="css/style.css" type="text/css"></link>
<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/addCheck.js"></script></head>
  <body>
    <div class="top">
  		<img src="images/main_28.gif"/>&nbsp;&nbsp;添加请假信息
  	</div>
  	<br/>
  	<div id="personalInfo">
  		<table>
	      <tr>
	        <td class="td_form01">姓名</td>
	        <td class=td_form02>${loginUser.userName} </td>
	        <td class="td_form01">性别</td>
	        <td class=td_form02>${loginUser.userSex}</td>
	      </tr>
	      <tr>
	        <td height="24" class="td_form01">部门</td>
	        <td class=td_form02>${loginUser.position.department.departmentName}</td>
	        <td class="td_form01">职位</td>
	        <td class=td_form02>${loginUser.position.positionName}</td>
	      </tr>
  		</table>
  	</div>
  	<div id="leaveInfo">
  		<form action="doAddLeave" method="post" class="fromClass" onsubmit="return checkLeaveInfo();">
  			<table>
		      <tr>
		        <td class="td_form01">请假时间</td>
		        <td class="td_form02">
		      从<input id="d5221" name="startDate" class="Wdate" type="text" onfocus="var d5222=$dp.$('d5222');WdatePicker({onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'});checkDate()" readonly="readonly" />
						至<input id="d5222" name="endDate" class="Wdate" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'d5221\')}'});checkDate()" readonly="readonly"/>
						<span id="dateError" class="error"></span>
		        </td>
		      </tr>
		      <tr>
			    <td class="td_form01">请假类别</td>
			    <td class="td_form02"><select name="leave.type">
			      <option>调研</option>
			      <option>会议</option>
			      <option>出国</option>
			      <option>事假</option>
			      <option>病假</option>
			      <option>其它假类</option>
			    </select>    
			    </td>
	  		  </tr>
	  		  <tr>
			    <td class="td_form01">请假事由<br/>
			      <br/>
			    	（必填） <br/></td>
			    <td class="td_form02"><textarea name="leave.reason" id="reason" cols="80" rows="5" ></textarea>
			    <span id="reasonError" class="error"></span>
			      <br/>
			     	 如：调研、出国、参加会议等去往何地、何事由。</td>
			  </tr>
	  		</table>
	  		<div align="center">
				<input name="Submit" type="submit" class="buttonface02" value="  申请  "/>
				&nbsp;&nbsp;
				<input name="Submit" type="button" class="buttonface02" value="  关 闭 " onclick="window.close()"/>
			</div>
  		</form>
  	</div>
<br/>
  </body>
</html>
